CameraUpdateFactory

Factory for creating CameraUpdate objects.

Types

Link copied to clipboard
class CameraPositionUpdate(val bearing: Double, val target: LatLng?, val tilt: Double, val zoom: Double, val padding: DoubleArray?) : CameraUpdate
Link copied to clipboard

Functions

Link copied to clipboard

Returns a CameraUpdate that moves the camera viewpoint to a particular bearing.

Link copied to clipboard

Returns a CameraUpdate that moves the camera to a specified CameraPosition.

Link copied to clipboard

Returns a CameraUpdate that moves the center of the screen to a latitude and longitude specified by a LatLng object. This centers the camera on the LatLng object.

Link copied to clipboard
fun newLatLngBounds(bounds: LatLngBounds, paddingLeft: Int, paddingTop: Int, paddingRight: Int, paddingBottom: Int): CameraUpdate

Returns a CameraUpdate that transforms the camera such that the specified latitude/longitude bounds are centered on screen at the greatest possible zoom level while maintaining current camera position bearing and tilt values.

fun newLatLngBounds(bounds: LatLngBounds, bearing: Double, tilt: Double, padding: Int): CameraUpdate
fun newLatLngBounds(bounds: LatLngBounds, bearing: Double, tilt: Double, paddingLeft: Int, paddingTop: Int, paddingRight: Int, paddingBottom: Int): CameraUpdate

Returns a CameraUpdate that transforms the camera such that the specified latitude/longitude bounds are centered on screen at the greatest possible zoom level while using provided bearing and tilt values.

Link copied to clipboard
fun newLatLngPadding(latLng: LatLng, left: Double, top: Double, right: Double, bottom: Double): CameraUpdate

Returns a CameraUpdate that moves the center of the screen to a latitude and longitude specified by a LatLng object, and moves to the given zoom level. Applied padding is going to persist and impact following camera transformations.

Link copied to clipboard

Returns a CameraUpdate that moves the center of the screen to a latitude and longitude specified by a LatLng object taking the specified padding into account.

Link copied to clipboard
fun paddingTo(left: Double, top: Double, right: Double, bottom: Double): CameraUpdate

Returns a CameraUpdate that when animated changes the camera padding. Applied padding is going to persist and impact following camera transformations.

Link copied to clipboard

Returns a CameraUpdate that moves the camera viewpoint to a particular tilt.

Link copied to clipboard
fun zoomBy(amount: Double, focus: Point): CameraUpdate

Returns a CameraUpdate that shifts the zoom level of the current camera viewpoint.

Link copied to clipboard

Returns a CameraUpdate that zooms in on the map by moving the viewpoint's height closer to the Earth's surface. The zoom increment is 1.0.

Link copied to clipboard

Returns a CameraUpdate that zooms out on the map by moving the viewpoint's height farther away from the Earth's surface. The zoom increment is -1.0.

Link copied to clipboard

Returns a CameraUpdate that moves the camera viewpoint to a particular zoom level.